#include "StdAfx.h"
#include "student.h"
#include "classSV.h"
#include <string.h>
#include <iostream>
#include <map>
using namespace std;

// Ham tao va ham ao
student::student(void){
}


student::student(int _id, string _name)
{
	id = _id;
	name = _name;	
}
student::student(int _id, string _name,int _classID)
{
	id = _id;
	name = _name;	
	classID = _classID;
	school::getClass(_classID).setStudent(this);
}	

student::~student(void)
{
}

/*******************************set va get ID***************************/
int student::getID()const{
	return id;
}

void student::setID(int _id){
	id = _id;
}


/********************************** Set va get name ************************/
string student::getName()const{
	return name;
}

void student::setName(string _name){
	name = _name;
}

/********************************** get Mark ************************/
float student::getMark()const{
	return this->mark;	
}
void student::setMark(float _mark){
	this->mark = _mark;
}

/********************************** Set va Get ClassID ************************/
int student::getClassID()const{
	return this->classID;
}
void student::setClassID(int _classID){
	this->classID = _classID;	
	//classSV::classMap[_classID] = this;
}